const express = require('express')

const router = express.Router()


const {add, getnum, getall} = require('../../../controller/cart')

// 购物车表相关请求就在这里处理
router.post('/add', add)
// 获取当前用户的购物车舒朗
router.get('/getnum/:userId', getnum)
// 获取购物车所有商品
router.get('/getall/:userId', getall)

module.exports = router